Fired when the EndEdit is called. You can read the Cancel property to determine if the edit is completed. If you change the cancel property there is no effect.
<param name="p_Property">Property of the object that you want to lint to the cell. When the value of the cell changed this behavior call automatically this property.</param>
<param name="p_LinkObject">Instance of the object to link</param>
<param name="p_bAutoChangeValueOfSelectedCells">Indicates if this cells when checked or uncheck must change also the value of the selected cells of type CellCheckBox.</param>
A behavior that support sort and resize. Once created cannot be modified. When calculated automatically the range to sort is all the grid range without the rows minor of the current row and the range header is all the grid range with the rows minor or equal of the current row
Allow to customize the contextmenu of a cell. This class read the contextmenu from the ICellContextMenu.GetContextMenu. This behavior can be shared between multiple cells.
Allow to customize the tooltiptext of a cell. This class read the tooltiptext from the ICellToolTipText.GetToolTipText. This behavior can be shared between multiple cells.
If the cell is not linked to a grid the result is not accurate (Font can be null). Call InternalGetRequiredSize with RowSpan and ColSpan = 1.
</summary>
<param name="p_Position">Position of the current cell</param>
<param name="g"></param>
<param name="maxLayoutArea">SizeF structure that specifies the maximum layout area for the text. If width or height are zero the value is set to a default maximum value.</param>
Fired when the EndEdit is called. You can read the Cancel property to determine if the edit is completed. If you change the cancel property there is no effect.
If the cell is not linked to a grid the result is not accurate (Font can be null). Call InternalMeasure with RowSpan and ColSpan = 1.
</summary>
<param name="p_Position">Position of the current cell</param>
<param name="g"></param>
<param name="maxLayoutArea">SizeF structure that specifies the maximum layout area for the text. If width or height are zero the value is set to a default maximum value.</param>
If the cell is not linked to a grid the result is not accurate (Font can be null)
</summary>
<param name="p_Position">Position of the current cell</param>
<param name="g"></param>
<param name="maxLayoutArea">SizeF structure that specifies the maximum layout area for the text. If width or height are zero the value is set to a default maximum value.</param>
Fired when the EndEdit is called. You can read the Cancel property to determine if the edit is completed. If you change the cancel property there is no effect.
If the cell is not linked to a grid the result is not accurate (Font can be null). Call InternalMeasure with RowSpan and ColSpan
</summary>
<param name="p_Position">Position of the current cell</param>
<param name="g"></param>
<param name="maxLayoutArea">SizeF structure that specifies the maximum layout area for the text. If width or height are zero the value is set to a default maximum value.</param>
A cell that rappresent a header of a table, with 3D effect. This cell override IsSelectable to false. Default use VisualModels.VisualModelHeader.Style1
Class that rapresent a col header with sort and resize feature.
</summary>
</member>
<member name="T:SourceGrid2.Cells.Real.Header">
<summary>
A cell that rappresent a header of a table, with 3D effect. This cell override IsSelectable to false. Default use VisualModels.VisualModelHeader.Style1
If you have 2 adjacent cells and want to create a 1 pixel width border, you must set width 1 for one cell and width 0 for the other. Usually a cell has only Right and Bottom border.
A struct that represents the borders of a cell. Contains 4 borders: Right, Left, Top, Bottom.
If you have 2 adjacent cells and want to create a 1 pixel width border, you must set width 1 for one cell and width 0 for the other. Usually a cell has only Right and Bottom border.
Calculate the Column that have the Left value smaller or equal than the point p_X, or -1 if not found found.
</summary>
<param name="p_X">X Coordinate to search for a column</param>
<param name="p_ExactMatch">True to returns only exact position. For example if you use a point outside the range and this value is true no column is returned otherwise the nearest column is returned.</param>
Indicates if auto recalculate left position when width value change. Default = true. Can be used when you need to change many Width value for example for an AutoSize operation to increase performance.
</summary>
</member>
<member name="T:SourceGrid2.CustomScrollControl">
<summary>
A control with a custom implementation of a scrollable area
If this flag is selected the Measure function returns always the minimum column/row size and don't calculate the real required size. This flag can be used to don't consider the content of a column/row
Used to draw only initialized cells. If you have uninitialized cell (you don't create a cell for a specific position: grid[0,0] = null;) the selection mask is not drawed on this cell. Consider that with this flags the drawing method is more complex and slow.If you use this flag the border can only be set to FocusCell or None.
Returns a position with the bigger Row and the bigger column
</summary>
<param name="p_Position1"></param>
<param name="p_Position2"></param>
<returns></returns>
</member>
<member name="P:SourceGrid2.Position.Row">
<summary>
Row
</summary>
</member>
<member name="P:SourceGrid2.Position.Column">
<summary>
Column
</summary>
</member>
<member name="T:SourceGrid2.Range">
<summary>
Represents range of cells. Once created connot be modified. This Range has always Start in the Top-Left, and End in the Bottom-Right (see Normalize method).
Calculate the Row that have the Top value smaller or equal than the point p_Y, or -1 if not found found.
</summary>
<param name="p_Y">Y Coordinate to search for a row</param>
<param name="p_ExactMatch">True to returns only exact position. For example if you use a point outside the range and this value is true no row is returned otherwise the nearest row is returned.</param>
Indicates if auto recalculate top position when height value change. Default = true. Can be used when you need to change many times Height value for example for an AutoSize operation to increase performance.
Returns the union of all the selected range as Position collection. This method doesn't return span cells; if for example grid[0,0] has a Span Column = 2 and the range selected is [0,0] -> [0,1] this method returns only 0,0.
</summary>
<returns></returns>
</member>
<member name="M:SourceGrid2.Selection.GetCells">
<summary>
Returns the union of all the selected range as Position collection
Searches for the specified Cell and returns the zero-based index of the first occurrence that starts at the specified index and contains the specified number of elements.
Fired when a cell is added from the selection or removed from the selection
</summary>
<param name="e"></param>
</member>
<member name="M:SourceGrid2.Selection.GetRange">
<summary>
Returns the range of the current selection. If the user has selected non contiguous cells this method returns a range to contains all the selected cells.
Draw the selection using the SelectionColor property over the selected cells. Draw a Border around the selection using Border and BorderMode properties.
</summary>
<param name="p_Panel"></param>
<param name="e"></param>
<param name="pRangeToRedraw">The range of cells that must be redrawed. Consider that can contains also not selected cells.</param>
BackColor of the cell with the Focus. Default is Color.Transparent.
</summary>
</member>
<member name="P:SourceGrid2.Selection.BackColor">
<summary>
Selection backcolor. Usually is a color with a transparent value so you can see the color of the cell. Default is: Color.FromArgb(75, Color.FromKnownColor(KnownColor.Highlight))
</summary>
</member>
<member name="P:SourceGrid2.Selection.Border">
<summary>
Border of the selection. Default is new RectangleBorder(new Border(Color.Black, 2));
If the Type support a UITypeEditor returns a EditorUITypeEditor else if the type has a StandardValues list return a EditorComboBox else if the type support string conversion returns a EditorTextBox otherwise returns null.
Returns the minimum required size of the current cell, calculating using the current DisplayString, Image and Borders informations.
</summary>
<param name="p_Graphics"></param>
<param name="p_bAlignTextToImage"></param>
<param name="p_bImageStretch"></param>
<param name="p_Border"></param>
<param name="p_DisplayText"></param>
<param name="p_Font"></param>
<param name="p_Image"></param>
<param name="p_ImageAlignment"></param>
<param name="p_StringFormat"></param>
<param name="maxLayoutArea">SizeF structure that specifies the maximum layout area for the text. If width or height are zero the value is set to a default maximum value.</param>
<returns></returns>
</member>
<member name="T:SourceGrid2.ValueCellComparer">
<summary>
A comparer for the Cell class. (Not for CellVirtual). Using the value of the cell.
<param name="p_ImageFullPath">The path to write embedded images files</param>
<param name="p_ImageRelativePath">The path used in the HTML source. If you save the images in the same path of the HTML file you can leave this path empty.</param>
<param name="p_HtmlStream">The stream to write</param>
True to insert the editor control inside the border of the cell, false to put the editor control over the entire cell. If you use true remember to set EnableCellDrawOnEdit == true.
Start editing the cell passed. Do not call this method for start editing a cell, you must use Cell.StartEdit. For internal use only, use Cell.StartEdit.
Change the value of the cell applying the rule of the current editor. Is recommend to use this method to simulate a edit operation and to validate the cell value using the current model.
Change the value of the cell applying the rule of the current editor. Is recommend to use this method to simulate a edit operation and to validate the cell value using the current model.
Returns the control attached to a particular grid, using ScrollablePanel. This method cannot be used to retrive editor attached to the fixed panel. Use GetEditorControl(GridSubPanel p_GridPanel) if you want to attach the editor to a fixed panel.
</summary>
<param name="p_Grid">The grid where the control is attached.</param>
Add the current editor to the grid ScrollablePanel. If you want to attach the editor to another panel call AttachEditorControl(GridSubPanel p_GridPanel)
A DataModel that use a TextBoxTypedNumeric for editing support. You can customize the NumericCharStyle property to enable char validation.
This class automatically set the ValidCharacters and InvalidCharacters using SourceLibrary.Windows.Forms.TextBoxTypedNumeric.CreateNumericValidChars method.
This property automatically set the ValidCharacters and InvalidCharacters using SourceLibrary.Windows.Forms.TextBoxTypedNumeric.CreateNumericValidChars method.
Auto size the columns and the rows currently visible
</summary>
<param name="p_UseAllColumns">If true this method AutoSize all the columns using the data in the current rows visible, otherwise autosize only visible columns</param>
Returns the relative rectangle to the current scrollable area of the specified Range. Returns a 0 rectangle if the Range is not valid. Calculates the relative position based on the Range.End property.
This method convert a Position to the real start position of cell. This is usefull when RowSpan or ColumnSPan is grater than 1.
For example suppose to have at grid[0,0] a cell with ColumnSpan equal to 2. If you call this method with the position 0,0 returns 0,0 and if you call this method with 0,1 return again 0,0.
Get the real position for the specified position. For example when p_Position is a merged cell this method returns the starting position of the merged cells.
Usually this method returns the same cell specified as parameter. This method is used for processing arrow keys, to find a valid cell when the focus is in a merged cell.
Recalculate the scrollbar position and value based on the current cells, scroll client area, linked controls and more. If redraw == false this method has not effect. This method is called when you put Redraw = true;
Set the focus on the control that contains the cells. Consider that the grid control contains a series of panels, so to set the focus on a cell you must first set the focus on the panels. This method set the Focus on the right panel.
Returns the cell at the specified grid view relative point (the point must be relative to the grid display region), SearchInFixedCells = true. Return Empty if no valid cells are found
Return the Cell at the specified Row and Col position. This method is called for sort operations and for Move operations. If position is Empty return null. This method calls GetCell(int p_iRow, int p_iCol)
Special keys that the grid can handle. You can change this enum to block or allow some special keys function. For example to disable Ctrl+C Copy operation remove from this enum the GridSpecialKeys.Ctrl_C.
List of controls that are linked to a specific cell position. For example is used for editors controls. Key=Control, Value=Position. The controls are automatically removed from the list when they are removed from the Grid.Controls collection
</summary>
</member>
<member name="P:SourceGrid2.GridVirtual.Redraw">
<summary>
If false the cells are not redrawed. Set False to increase performance when adding many cells, after adding the cells remember to set this property to true.
This method convert a Position to the real start position of cell. This is usefull when RowSpan or ColumnSPan is grater than 1.
For example suppose to have at grid[0,0] a cell with ColumnSpan equal to 2. If you call this method with the position 0,0 returns 0,0 and if you call this method with 0,1 return again 0,0.
Get the real position for the specified position. For example when p_Position is a merged cell this method returns the starting position of the merged cells.
Usually this method returns the same cell specified as parameter. This method is used for processing arrow keys, to find a valid cell when the focus is in a merged cell.
Force a cell to redraw. If Redraw is set to false this function has no effects. If ColSpan or RowSpan is greater than 0 this function invalidate the complete range with InvalidateRange
Returns or set a cell at the specified row and col. If you get a ICell position occupied by a row/col span cell, and EnableRowColSpan is true, this method returns the cell with Row/Col span.
Get if Row/Col Span is enabled. This value is automatically calculated based on the current cells.
</summary>
</member>
<member name="P:SourceGrid2.Grid.MaxSpanSearch">
<summary>
Gets the maximum rows or columns number to search when using Row/Col Span. This value is automatically calculated based on the current cells. Do not change this value manually.
</summary>
</member>
<member name="P:SourceGrid2.Grid.FocusCell">
<summary>
Returns the active cell. Null if no cell are active
</summary>
</member>
<member name="P:SourceGrid2.Grid.MouseCell">
<summary>
The cell currently under the mouse cursor. Null if no cell are under the mouse cursor.
</summary>
</member>
<member name="P:SourceGrid2.Grid.CustomSort">
<summary>
Gets or sets if when calling SortRangeRows method use a custom sort or an automatic sort. Default = false (automatic)
Returns the minimum required size of the current cell, calculating using the current DisplayString, Image and Borders informations.
</summary>
<param name="p_Graphics"></param>
<param name="p_Cell"></param>
<param name="p_CellPosition"></param>
<param name="maxLayoutArea">SizeF structure that specifies the maximum layout area for the text. If width or height are zero the value is set to a default maximum value.</param>
Returns the minimum required size of the current cell, calculating using the current DisplayString, Image and Borders informations.
</summary>
<param name="p_Graphics"></param>
<param name="p_Cell"></param>
<param name="p_CellPosition"></param>
<param name="maxLayoutArea">SizeF structure that specifies the maximum layout area for the text. If width or height are zero the value is set to a default maximum value.</param>
Returns the minimum required size of the current cell, calculating using the current DisplayString, Image and Borders informations.
</summary>
<param name="p_Graphics"></param>
<param name="p_Cell"></param>
<param name="p_CellPosition"></param>
<param name="maxLayoutArea">SizeF structure that specifies the maximum layout area for the text. If width or height are zero the value is set to a default maximum value.</param>
Represents a default CheckBox with the CheckBox image align to the Middle Center of the cell. You must use this VisualModel with a Cell of type ICellCheckBox.
Returns the minimum required size of the current cell, calculating using the current DisplayString, Image and Borders informations.
</summary>
<param name="p_Graphics"></param>
<param name="p_Cell"></param>
<param name="p_CellPosition"></param>
<param name="maxLayoutArea">SizeF structure that specifies the maximum layout area for the text. If width or height are zero the value is set to a default maximum value.</param>
Represents a Column Header with the ability to draw an Image in the right to indicates the sort operation. You must use this model with a cell of type ICellSortableHeader.
Returns the minimum required size of the current cell, calculating using the current DisplayString, Image and Borders informations.
</summary>
<param name="p_Graphics"></param>
<param name="p_Cell"></param>
<param name="p_CellPosition"></param>
<param name="maxLayoutArea">SizeF structure that specifies the maximum layout area for the text. If width or height are zero the value is set to a default maximum value.</param>
Represents a Column Header with the ability to draw an Image in the right to indicates the sort operation. You must use this model with a cell of type ICellSortableHeader.